class StoreTimeListVo {

  StoreTimeListData? data;

  StoreTimeListVo({this.data});

  StoreTimeListVo.fromJson(Map<String, dynamic> json) {
    data = json['data'] != null ? new StoreTimeListData.fromJson(json['data']) : null;
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    if (this.data != null) {
      data['data'] = this.data!.toJson();
    }
    return data;
  }
}

class StoreTimeListData {
  int? id;
  String? address;
  String? title;
  int? quato;
  List<BookingItem>? bookings;

  StoreTimeListData({this.id, this.address, this.title, this.quato, this.bookings});

  StoreTimeListData.fromJson(Map<String, dynamic> json) {
    id = json['id'];
    address = json['address'];
    title = json['title'];
    quato = json['quato'];
    if (json['bookings'] != null) {
      bookings = <BookingItem>[];
      json['bookings'].forEach((v) {
        bookings!.add(new BookingItem.fromJson(v));
      });
    }
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    data['id'] = this.id;
    data['address'] = this.address;
    data['title'] = this.title;
    data['quato'] = this.quato;
    if (this.bookings != null) {
      data['bookings'] = this.bookings!.map((v) => v.toJson()).toList();
    }
    return data;
  }
}

class BookingItem {
  int? status;
  String? pickingAt;
  int? quantity;

  BookingItem({this.status, this.pickingAt, this.quantity});

  BookingItem.fromJson(Map<String, dynamic> json) {
    status = json['status'];
    pickingAt = json['picking_at'];
    quantity = json['quantity'];
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    data['status'] = this.status;
    data['picking_at'] = this.pickingAt;
    data['quantity'] = this.quantity;
    return data;
  }
}
